package com.example.netchat;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (android.content.Intent.ACTION_BOOT_COMPLETED.equals(intent
				.getAction())) {
			context.startService(new Intent(context.getApplicationContext(),
					ChatService.class));
		}
	}
}
